package com.vdong.common.oauth.repository.dao;

import com.vdong.common.oauth.entity.dto.LoginParamDTO;
import com.vdong.common.oauth.entity.mo.WechatAuthorizerInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
public interface WechatAuthorizerInfoMapper {

    int deleteByPrimaryKey(String appid);

    int insert(WechatAuthorizerInfo record);

    WechatAuthorizerInfo selectByPrimaryKey(String appid);

    List<WechatAuthorizerInfo> selectAll();

    int updateByPrimaryKey(WechatAuthorizerInfo record);

    List<WechatAuthorizerInfo> selectByStoreId(@Param("storeId")long storeId , @Param("code") int code);

    List<WechatAuthorizerInfo> selectByAppId(@Param("appId")String appId , @Param("code")int code);

    List<WechatAuthorizerInfo> selectStore(LoginParamDTO param);
}